<?php
/**
 * Created by PhpStorm.
 * User: EZ
 * Date: 2017/5/26
 * Time: 9:25
 */

define('ZDW_START_TIME', microtime(true));
define('ZDW_START_MEM', memory_get_usage());
define('DS', DIRECTORY_SEPARATOR);
define("PUBLIC_PATH","static");
define("HTML_PATH",__DIR__."/../html/");
define("ZDW_PATH",__DIR__."/");
define("RUNTIME_PATH",ROOT_PATH."runtime".DS);
define("LOG_PATH",RUNTIME_PATH."log".DS);
// 环境常量
define('IS_CLI', PHP_SAPI == 'cli' ? true : false);
define('IS_WIN', strpos(PHP_OS, 'WIN') !== false);

function dp($ar){
    echo '<pre>';
    print_r($ar);
    echo '</pre>';die;
}
include ZDW_PATH.'/core/Loader.php';
include ROOT_PATH.'vendor/autoload.php';
//spl_autoload_register("\\core\\Loader::autoload");
\core\Loader::register();
\core\Error::register();



